<?php

namespace app\common\validate;

use think\Validate;

class BisLocation extends Validate
{
    protected $rule = [
        ['name', 'require|max:20', '名称不能为空|名称长度不能超过20'],
        ['city_id', 'require', '请选择城市'],
        ['logo', 'require', '请上传图片'],
        ['category_id', 'require', '请选择所属分类'],
        ['address', 'require', '你闹呢'],
        ['tel', 'require', '请填写手机号码']
    ];
    protected $scene = [
        'add' => ['name', 'city_id', 'logo', 'category_id', 'address', 'tel']
    ];
}